home *** CD-ROM | disk | FTP | other *** search
/ Merciful 5 / Merciful - Disc 5.iso / software / p / pcqpascalv1.2d.lha / Include / Libraries / nonvolatile.i < prev    next >
Text File  |  1997-05-06  |  2KB  |  75 lines

  1.   {      nonvolatile.library interface structures and defintions. }
  2.  
  3.  
  4. {$I "Include:Exec/Nodes.i"}
  5. {$I "Include:Exec/Lists.i"}
  6.  
  7. {***************************************************************************}
  8.  
  9. Type
  10.  NVInfo = Record
  11.     nvi_MaxStorage,
  12.     nvi_FreeStorage : Integer;
  13.  end;
  14.  NVInfoPtr = ^NVInfo;
  15.  
  16. {***************************************************************************}
  17.  
  18.  
  19.  NVEntry = Record
  20.     nve_Node        : MinNode;
  21.     nve_Name        : String;
  22.     nve_Size,
  23.     nve_Protection  : Integer;
  24.  end;
  25.  NVEntryPtr = ^NVEntry;
  26.  
  27. const
  28. { bit definitions for mask in SetNVProtection().  Also used for
  29.  * NVEntry.nve_Protection.
  30.  }
  31.  NVEB_DELETE  = 0 ;
  32.  NVEB_APPNAME = 31;
  33.  
  34.  NVEF_DELETE  = 1;
  35.  NVEF_APPNAME = -2147483648;
  36.  
  37.  
  38. {***************************************************************************}
  39.  
  40.  
  41. { errors from StoreNV() }
  42.  NVERR_BADNAME   = 1;
  43.  NVERR_WRITEPROT = 2;
  44.  NVERR_FAIL      = 3;
  45.  NVERR_FATAL     = 4;
  46.  
  47.  
  48.  
  49. { --- functions in V40 or higher (Release 3.1) --- }
  50.  
  51. FUNCTION CopyNV(appName, itemName : String; killRequesters : Integer) : Address;
  52.     External;
  53.  
  54. PROCEDURE FreeNVData(Data : Address);
  55.     External;
  56.  
  57. FUNCTION StoreNV(appName, itemName : String; Data : Address; length,
  58.                  killrequesters : Integer) : WORD;
  59.     External;
  60.  
  61. FUNCTION DeleteNV(appName, itemName : String; KillRequester : Integer) : Boolean;
  62.     External;
  63.  
  64. FUNCTION GetNVInfo(KillRequesters : Integer) : NVInfoPtr;
  65.     External;
  66.  
  67. FUNCTION GetNVList(appName : String; KillRequesters : Integer) : MinListPtr;
  68.     External;
  69.  
  70. FUNCTION SetNVProtection(appName, itemName : String; mask, KillRequesters : Integer) : Boolean;
  71.     External;
  72.  
  73.  
  74.  
  75.